Transparent auto-negotiation of ethernet

ABSTRACT

A system for negotiating Ethernet link settings between interconnected nodes in a network having an Ethernet protocol stack that includes a PCS sub-layer with an auto-negotiation function. The system comprises connecting an intermediate device coupled between two network nodes via optical or copper interfaces, with the link settings between each node and the connected intermediate device being the same, thereby bypassing the auto-negotiation of the PCS sub-layer in the intermediate device. The intermediate device may transparently send negotiation messages from each node to the other during the link negotiation phase without interacting with those messages. Instead of the intermediate device, a single form pluggable (SFP) device may be connected between the two network nodes via optical or copper interfaces on the network side and via an SFP slot on the device side.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 15/613,497, filed Jun. 5, 2017, now allowed, which is a continuation of U.S. patent application Ser. No. 15/287,182, filed Oct. 6, 2016, now U.S. Pat. No. 9,699,033, which is a continuation of U.S. patent application Ser. No. 14/698,407, filed Apr. 28, 2015, now U.S. Pat. No. 9,491,053, which is a continuation of and claims priority to U.S. patent application Ser. No. 13/608,476, filed Sep. 10, 2012, now abandoned, each of which is hereby incorporated by reference herein in its entirety.

FIELD OF THE INVENTION

The present invention relates to the transparent negotiation of Ethernet settings between a pair of end devices connected to each other via an intermediate device, where the intermediate device does not participate in the negotiation phase between the two end devices, but inherits the Ethernet settings negotiated by the two end devices and initializes its Ethernet ports according to the results of the negotiation between the two end devices.

BACKGROUND OF THE INVENTION

When inserting a new device in a network, particularly when the new device is inserted between a pair of devices that would otherwise be directly connected together over Ethernet, there is a risk that the new device may impact the results of a negotiation of the Ethernet settings between the original pair of devices.

For instance, a disparity in the negotiation of the settings could occur when only one device is up when the intermediate device is started. This could result in the negotiation of a half-duplex Ethernet connection on one port of the intermediate device while the other port of the intermediate device negotiates a full-duplex Ethernet connection with the other remote device.

Another problem to handle is when there is only a single device connected to the intermediate device at a given time. Under such a scenario, the device connected to the intermediate device shall be able to operate at the highest possible speed supported by that said device and not have to wait for a second device to be connected to the intermediate device before it can negotiate the settings of the Ethernet connection.

In a typical 1000BaseT Ethernet protocol stack, the Physical Coding Sub-layer (PCS—see FIG. 3 “37-1—Location of the Auto-Negotiation function” from the IEEE 802.3-2008 standard) is responsible for the negotiation of the Ethernet settings for a specific Ethernet port on a device. The harmonization of the negotiation of the Ethernet settings for multiple ports in a single device is not covered by the IEEE 802.3-2008 standard.

There is a need to allow the ability to inspect and operate on Ethernet frames received over any of the ports of an intermediate device once the auto-negotiation phase is completed.

SUMMARY

In accordance with one embodiment, a system for negotiating Ethernet link settings between interconnected nodes in a network, the interconnected nodes having an Ethernet protocol stack that includes a PCS sub-layer with an auto-negotiation function comprises intermediate device coupled between two network nodes via optical or copper interfaces, with the link settings between each node and the connected intermediate device being the same, thereby bypassing the auto-negotiation function of the PCS sub-layer inside the intermediate device. The intermediate device may transparently send negotiation messages from each node to the other during the link negotiation phase without interacting with those messages.

In one implementation, a pair of network devices are attached to the intermediate device, and the intermediate device includes at least two physical ports and a management module that sets the two physical ports to Ethernet settings negotiated between the pair of network devices. Normal Ethernet functioning may be resumed after the negotiating of the link settings is complete.

This method allows the negotiation of the Ethernet settings between a pair of devices attached to the intermediate device to take place without the intermediate device taking part in the auto-negotiation phase between the pair of devices attached to the Ethernet ports of the intermediate device. This is achieved by bypassing (or modifying) the auto-negotiation sub-module in the PCS sub-layer where the configuration codes received on one of the Ethernet port of the intermediate device are directly sent to the PCS sub-layer transmit function on the other port of the intermediate device, bypassing the auto-negotiation sub-module defined by the IEEE 802.3-2008 standard for these Ethernet ports.

An additional management module is needed to monitor the negotiation exchange between the pair of devices attached to the intermediate device in order to set the two physical Ethernet ports of the intermediate device to the Ethernet settings negotiated between the pair of devices attached to the intermediate device. This is important since the intermediate device may have to process Ethernet frames exchanged between the pair of devices to perform Service OAM and other functions and the Ethernet settings of the two ports in the intermediate device need to exactly match the Ethernet configuration negotiated between the pair of devices connected to the intermediate device.

When there is only one device attached to the intermediate device, the negotiation shall proceed as per the IEEE 802.3-2008 standard as if the attached device was to negotiate with itself.

Finally, all other Ethernet frames need to flow through the MAC sub-layer of the individual Ethernet ports of the intermediate device (in receive and/or transmit mode).

In a modified embodiment, a method of negotiating Ethernet link settings between interconnected nodes in a network comprises connecting a single form pluggable (SFP) device between two network nodes via optical or copper interfaces on the network side and via an SFP slot on the device side, and negotiating the link settings identically between each node and the connected SFP device. The SFP device may transparently send negotiation messages from each node to the other during the link negotiation phase without interacting with those messages.

In one implementation, the SFP device includes two physical ports, and which includes a pair of network devices attached to said SFP device, and a management module that sets the two physical ports to Ethernet settings negotiated between the pair of network devices. Here again, normal Ethernet functioning may be resumed after a link negotiation sequence is complete

BRIEF DESCRIPTION OF THE DRAWINGS

The invention may best be understood by reference to the following description taken in conjunction with the accompanying drawings.

FIG. 1 is a simple network where two devices are connected with an intermediate device

FIG. 2 is a simple network where two devices are connected with an intermediate SFP

FIG. 3 illustrates the sub-layers corresponding to the Data Link layer as defined in the generic OSI model.

FIG. 4 illustrates the protocol sub-layers of the Ethernet Data Link protocol

FIG. 5 illustrates how one of the Ethernet port of the intermediate device interfaces with the host with the SFP slot rather than with a physical Ethernet port (copper or optical)

FIG. 6 illustrates how the PCS sub-layer is broken into distinct functional modules.

FIG. 7 illustrates how the Auto-negotiation function of the PCS sub-layer is replaced or modified to support this invention.

FIG. 8 illustrates an alternate implementation with changes to the interactions and functions of the Switch Modules, Management module and the interface with the PCS Transmit and Receive functions

FIG. 9 illustrates an alternate implementation where the Switch Modules used previously are integrated as part of the Management module that interfaces directly with the PCS Receive function and with the PCS Transmit function.

FIG. 10 illustrates an alternate implementation where the management module handles the interfacing between the MAC sub-layer and the PCS Receive and Transmit functions.

DETAILED DESCRIPTION OF ILLUSTRATED EMBODIMENTS

Although the invention will be described in connection with certain preferred embodiments, it will be understood that the invention is not limited to those particular embodiments. On the contrary, the invention is intended to cover all alternatives, modifications, and equivalent arrangements as may be included within the spirit and scope of the invention as defined by the appended claims.

The invention is aimed at allowing an intermediate device to facilitate the interconnection and the automatic negotiation of the Ethernet settings (e.g speed, half or full duplex, master or slave for clock or other parameters) between a pair of devices as if these devices were directly interconnected by a standard Ethernet cable. By inserting an intermediate device between the pair of devices, it is possible to offer Service OAM and other functions without disrupting the operation of the pair of devices. This transparent mode of operation of the intermediate device includes enabling a totally transparent negotiation of the Ethernet settings for each connection as if they were a simple Ethernet cable directly connecting the pair of devices.

An example of this can be seen in FIG. 1 where device A 110 and device B 120 are interconnected via Ethernet connections 104 and 105 to the intermediate device 101. More specifically, device A 110 is connected to the intermediate device 101 via Ethernet port 102 and device B 120 is connected to the intermediate device 101 via Ethernet port 103. As described further below, the negotiation of the Ethernet settings takes place transparently between the devices 110 and 120 as if they were connected directly via a single Ethernet cable.

FIG. 2 illustrates another embodiment of the invention where the intermediate device is embodied as a standard-based Single Form Pluggable (SFP) device with an embedded FPGA device and an optional CPU module (which can be internal or external to the FPGA module). Device A 210 is a network node with a standard-based SFP slot. An SFP module 201 is inserted in device A 210 and acts as a transparent intermediate device between device A 210 and device B 220. The SFP module 201 incorporates a pair of Ethernet ports. The Ethernet port 202 interfaces to device A 210 in compliance with the physical connector and signaling defined by the SFP standard. Ethernet port 203 uses a standard Ethernet connector (such as an RJ-45 or an optical connector) to connect to device B 220 over either a copper or optical fibre 204. The functions and services offered by the SFP module 201 are analogous to the intermediate device 101 described in FIG. 1.

The negotiation techniques described below apply to both of these embodiments and any alternative embodiment using an intermediate device known to someone skilled in the art unless explicitly stated otherwise.

The IEEE 802.3-2008 standard defines the operation of the Ethernet protocol stack at various operating speeds, including Gigabit Ethernet (also referred to as 1000BaseT Ethernet). FIG. 3 is extracted and corresponds to FIG. 37-1 from the IEEE 802.3-2008 standard and illustrates the sub-layers corresponding to the Data Link layer as defined in the generic OSI model. In a typical 1000BaseT Ethernet protocol stack, the Physical Coding Sub-layer (PCS) is responsible for various functions, including the Auto-Negotiation function of the Ethernet settings for the Ethernet connection carried over a specific Ethernet port. The Auto-negotiation function of the PCS sub-layer is defined in the standard to cover the operation of a single Ethernet port at a time. As such, the IEEE 802.3-2008 standard does not define how to handle the harmonization of the negotiation of the Ethernet settings for multiple ports in a single device.

The Ethernet Data Link protocol layer is made up of several protocol sub-layers. As seen in FIG. 4, the Medium Independent Interface (MDI) 401 is responsible for the physical interconnection to the Ethernet cable. Frequently, this is achieved via the popular RJ-45 interface, although optical and other medium may also be used. The Physical Medium Dependent (PMD) sub-layer 402 is responsible for presenting a medium independent interface to the Physical Medium Attachment (PMA) sub-layer 403. The PMA sub-layer interfaces with the Physical Coding Sub-layer (PCS) 404 that is responsible, amongst other things, for the auto-negotiation settings of the Ethernet connection over the Ethernet port. When operating at 1000BaseT speeds, the auto-negotiation phase is a mandatory feature as specified by the IEEE 802.3-2008 standard. While negotiation codes are handled inside the PCS sub-layer 404, all other Ethernet frames are passed to (or received from) the Media Access Control (MAC) sub-layer 405. When looking at each sub-layer of the Ethernet protocol stack in FIG. 4, as is known in the art and as per the definition of the Ethernet standard, it should be noted that each sub-layer further includes a Receive and a Transmit function.

FIG. 5 illustrates how one of the Ethernet ports of the intermediate device interfaces with the host with the SFP slot rather than with a physical Ethernet port (copper or optical) when an SFP module is inserted in an SFP slot of a host device. The SFP module 550 interfaces to the Host device 530 via its SFP connector 540. The Ethernet sub-layers on the SFP module 550 are limited to a subset of the layers illustrated by FIG. 4 above. The MAC sub-layer 555 interfaces in a traditional way to the PCS sub-layer 554 that in turn interfaces to the PMA sub-layer 553. The lower interface of the PMA sub-layer 553 uses the 1000Base-X encoding to communicate over the SFP connector 540. The Ethernet sub-layers on the Host device 530 are similar. The MAC sub-layer 535 interfaces in a traditional way to the PCS sub-layer 534 that in turn interfaces to the PMA sub-layer 533. The lower interface of the PMA sub-layer 533 uses the 1000Base-X encoding to communicate over the SFP connector 540.

The negotiation of the Ethernet settings between a pair of devices attached to an intermediate device can take place without involving the auto-negotiation function usually performed at the PCS sub-layer in the Ethernet protocol stack for each port of the intermediate device connected to the pair of external devices 110 and 120 in FIG. 1.

FIG. 6 illustrates how the PCS sub-layer 600 is broken into distinct functional modules. The PCS Receive function 601 passes Ethernet negotiation codes received from the PMA sub-layer to the Auto-negotiation function 603. Incoming Ethernet data frames from the PMA sub-layer are passed directly to the MAC sub-layer (not shown in FIG. 6). The PCS Transmit function 602 passes Ethernet negotiations code from the Auto-negotiation function 603 to the PMA sub-layer for eventual transmission to the remote device with which it is negotiating the Ethernet settings. The PCS Transmit function 602 is also responsible for Ethernet data frames originating from the MAC layer (not shown in FIG. 6). The transparent auto-negotiation of the Ethernet settings is performed as if the PCS Auto-negotiation function 603 inside each of the pair of external devices (from the point of view of an intermediate device) were directly interconnected via an Ethernet cable. This is achieved by bypassing (or modifying) the Auto-negotiation function 603 in the PCS sub-layer 600 of each Ethernet port of the intermediate device where the configuration codes received on one of the Ethernet port are directly sent to the PCS sub-layer transmit function 602 of the Ethernet protocol stack of the other Ethernet port on the intermediate device, bypassing the Auto-negotiation function 603 defined by the IEEE 802.3-2008 standard.

FIG. 7 illustrates an embodiment of the Auto-negotiation function of the PCS sub-layer. The full Ethernet protocol stack is shown for a pair of Ethernet ports (700, 720). The PMD sub-layer 701 and the PMA sub-layer 702 operate as per the IEEE 802.3-2008 standard. The PCS sub-layer is modified by replacing the Auto-negotiation function normally found in a standard implementation of the PCS sub-layer with a new function that acts as a programmable switch for the 8-bit interface provided by the PMA sub-layer. The switch function 709 will by default be set in the CONFIGURATION mode. Any received /C/ and /I/ ordered sets received over the PCS Receive function 707 will be passed to a switch 709, and the switch 709 will be configured by the Management module 710 to forward all ordered sets /C/ and /I/ received over the PCS Receive function 707 to the PCS Transmit function 728 of the other Ethernet port 720. The switch 709 will also forward the Ethernet ordered sets /C/ and /I/ to the Management module 710 responsible for determining when the auto-negotiation phase between the devices attached to port 700 and port 720 of the intermediate device is completed. The same behaviour takes place for the second Ethernet port. The switch 729 is configured by the Management module 710 to forward all /C/ and /I/ ordered sets received over the PCS Receive function 727 to the PCS Transmit function 708 of the other Ethernet port 700. The switch 729 will also forward the /C/ and /I/ ordered sets to the Management module 710 responsible for determining when the auto-negotiation phase between the devices attached to port 700 and port 720 of the intermediate device is completed. The Management module will analyze the ordered sets /C/ and /I/ it receives from switch 709 and from switch 729 to learn the Ethernet settings as the auto-negotiation phase progresses between the device attached to port 700 and the device attached to port 720. The Management module will determine that the auto-negotiation process is completed when it sees a /I/ ordered set from either of the devices attached to ports 700 and 720 over their respective PCS Receive functions 707 and 727.

Upon detecting that the auto-negotiation phase is completed, the management module 710 programs the switch 709 and the switch 729 in DATA mode to stop forwarding the /C/ and /I/ ordered sets to the PCS Transmit function (708 and 728) of the other Ethernet port (700, 720). Switch 709 will be programmed to send all /R/, /S/, /T/ and /V/ ordered sets to the MAC Sub-layer 705, and the Switch 729 will be programmed to send all /R/, /S/, /T/ and /V/ ordered sets to the MAC Sub-layer 725. Both switch 709 and switch 729 will continue to forward all IF and /C/ ordered sets to the Management module 710 to detect whether one of the devices attached to port 700 or port 720 needs to re-enter in the auto-negotiation phase. When the Management module 710 detects that a new auto-negotiation phase needs to take place, it will program switch 709 and switch 729 to operate in the CONFIGURATION mode.

Once the auto-negotiation phase is completed, the Management Module 710 needs to set the parameters of the Ethernet ports of the intermediate device. Particular attention is needed when an Ethernet port of the intermediate device operates over copper. If the remote device attached to such an Ethernet port is assigned the role of Master (for the clocking), then the corresponding Ethernet port of the intermediate device shall be configured in Slave mode. Otherwise, if the remote device is assigned the role of Slave, then the corresponding Ethernet port of the intermediate device shall be configured in Master mode. If the pair of Ethernet ports (700, 720) of the intermediate device both operate over copper, one Ethernet port (in the pair of ports) will be configured as a Master, and the other Ethernet port (in the same pair of ports) will be configured as a Slave. The Management module 710 also needs to make sure both Ethernet ports (700, 720) are set to the negotiated duplex settings: Full or Half.

If the Ethernet ports of the intermediate device are made up of an optical Ethernet port and of a copper Ethernet port, the Management Module 710 will need to intercept all of the /C/ ordered sets to make sure that the Master/Slave mode and the Duplex settings negotiation only take place on the Ethernet over copper port. This can be achieved by programming the Switches 709 and 729 to pass all of the /C/ ordered sets to the Management module 710 instead of simply relaying the /C/ to the PCS transmit function 708 or 728 of the other Ethernet port.

When there is only one device attached to the intermediate device, the negotiation shall proceed as per the IEEE 802.3-2008 standard as if the attached device was to negotiate with itself. Looking again at FIG. 7 and assuming that the device is attached to port 700, the Switch 709 will initially be programmed by the Management module 710 in CONFIGURATION mode to forward the /C/ and /I/ ordered sets received over the PCS Receive function 707 to the PCS Transmit function 708 to loopback the /C/ and /I/ ordered sets back to the device on port 700. The Switch 709 will also be programmed to forward the /C/ and /I/ ordered sets to the Management module 710 to allow it to determine the end of the auto-negotiation phase and to program the Switch 709 in DATA mode to stop forwarding to the PCS Transmit function 708 and instead forward the /R/, /S/, /T/ and /V/ ordered sets to the MAC sub-layer 705 and the Management module 710. Alternatively, if the single device is attached to port 720, the Management module 710 will program the Switch 729 in CONFIGURATION mode to forward the /C/ and /I/ ordered sets received over the PCS Receive function 727 to the PCS Transmit function 728 to loopback the /C/ and /I/ ordered sets back to the device on port 720. The Switch 729 will also be programmed to forward the /C/ and IF code sets to the Management module 710 to allow it to determine the end of the auto-negotiation phase and to program the Switch 729 in DATA mode to stop forwarding to the PCS Transmit function 728 and instead forward the /C/ and /I/ code sets to Management module 710.

The replacement of the Auto-negotiation function of the PCS sub-layer in FIG. 7 and described above may also be achieved by other embodiments.

In an alternate embodiment shown in FIG. 8, the interactions and functions of the Switch Modules 809 and 829 with the Management module 810 and the interface with the PCS Receive function 807 and 827 and with the PCS Transmit function 808 and 828 is different from FIG. 7. More specifically, the PCS Receive function 807 and 827 includes the ability to detect the type of Ethernet ordered sets and can forward the /R/, /S/, /T/ and /V/ data ordered sets directly to the MAC sub-layer 805 (for PCS Receive function 807) and 825 (for PCS Receive function 827). All other ordered sets /C/ and /I/ will be forwarded to the Switch function (809, 829) in order to be replicated on the other Ethernet port (800, 820) and will also be forwarded to the Management module 810 to keep track of the state of the auto-negotiation. PCS Receive function 807 will forward the /C/ and /I/ ordered sets to Switch 809 that will in turn forward the ordered sets to the Management module 810 and to the PCS Transmit function 828. PCS Receive function 827 will forward the /C/ and /I/ ordered sets to Switch 829 that will in turn forward the ordered sets to the Management module 810 and to the PCS Transmit function 808. The MAC sub-layer will use the PCS Transmit function directly for all /R/, /S/, /T/ and /V/ ordered sets. MAC sub-layer 805 will interface directly with PCS Transmit function 808, and MAC sub-layer 825 will interface directly with PCS Transmit function 828. The behavior or the other Ethernet sub-layers (PMA, PMD and MDI) remains the same as the description of FIG. 7.

Once the auto-negotiation phase is completed, the Management Module 810 needs to set the parameters of the Ethernet ports (800, 820) of the intermediate device as per FIG. 7.

If the Ethernet ports of the intermediate device are made up of an optical Ethernet port and of a copper Ethernet port, the Management Module 810 will need to intercept all of the /C/ ordered sets to make sure that the Master/Slave mode and the Duplex settings negotiation only take place on the Ethernet over copper port. This can be achieved by programming the Switches 809 and 829 to pass all of the /C/ ordered sets to the Management module 810 instead of simply relaying the /C/ to the PCS transmit function 808 or 828 of the other Ethernet port.

In an alternate embodiment shown in FIG. 9, the Switch Modules used previously (see FIG. 7 and FIG. 8) are integrated as part of the Management module 910 that interfaces directly with the PCS Receive function 907 and 927 and with the PCS Transmit function 908 and 928. More specifically, the PCS Receive function 907 and 927 includes the ability to detect the type of Ethernet ordered sets and can forward the /R/, /S/, /T/ and /V/ data ordered sets directly to the MAC sub-layer 905 (for PCS Receive function 907) and 925 (for PCS Receive function 927). All other ordered sets /C/ and /I/ will be forwarded to the Management module 910 in order to be replicated on the other Ethernet port (900, 920) and to keep track of the state of the auto-negotiation. PCS Receive function 907 will forward the /C/ and /I/ ordered sets to management module 910 that will in turn forward the ordered sets to the PCS Transmit function 928. PCS Receive function 927 will forward the /C/ and /I/ ordered sets to Management module 910 that will in turn forward the ordered sets to the PCS Transmit function 908. The MAC sub-layer will use the PCS Transmit function directly for all /R/, /S/, /T/ and /V/ ordered sets. MAC sub-layer 905 will interface directly with PCS Transmit function 908, and MAC sub-layer 925 will interface directly with PCS Transmit function 928. The behavior or the other Ethernet sub-layers (PMA, PMD and MDI) remains the same as the description of FIG. 7.

Once the auto-negotiation phase is completed, the Management Module 910 needs to set the parameters of the Ethernet ports (900, 920) of the intermediate device as per FIG. 7.

In a final alternate embodiment shown in FIG. 10, the Management module 1010 handles the interfacing between the MAC sub-layer and the PCS Receive and PCS Transmit functions. More specifically, the PCS Receive function 1007 and 1027 forward all Ethernet ordered sets to the Management module 1010 that will determine the type of ordered sets received. The Management module 1010 will relay /C/ and /I/ ordered sets to the other Ethernet port. /C/ and /I/ ordered sets received from PCS Receive function 1007 will be forwarded to PCS Transmit function 1028, and /C/ and /I/ ordered sets received from PCS Receive function 1027 will be forwarded to PCS Transmit function 1008. /R/, /S/, /T/ and /V/ ordered sets received by the Management module 1010 from the PCS Receive function 1007 will be forwarded to the MAC sub-layer 1005, and /R/, /S/, /T/ and /V/ ordered sets received from the MAC sub-layer 1005 will be passed to the PCS Transmit function 1008. /R/, /S/, /T/ and /V/ ordered sets received by the Management module 1010 from the PCS Receive function 1027 will be forwarded to the MAC sub-layer 1025 and /R/, /S/, /T/ and /V/ ordered sets received from the MAC sub-layer 1025 will be passed to the PCS Transmit function 1028. The behavior or the other Ethernet sub-layers (PMA, PMD and MDI) remains the same as the description of FIG. 7.

Once the auto-negotiation phase is completed, the Management Module 1010 needs to set the parameters of the Ethernet ports (1000, 1020) of the intermediate device as per FIG. 7.

The embodiments described above can be implemented inside a single FPGA device. Alternatively, they may be implemented between a plurality of FPGA devices and /or a general purpose CPU. It should be noted that the general purpose CPU may alternatively be implemented inside an FPGA device (for instance, a NIOS module in an ALTERA FPGA).

While particular embodiments and applications of the present invention have been illustrated and described, it is to be understood that the invention is not limited to the precise construction and compositions disclosed herein and that various modifications, changes, and variations may be apparent from the foregoing descriptions without departing from the spirit and scope of the invention as defined in the appended claims. 

The invention claimed is:
 1. A system for negotiating Ethernet link settings between a first network device and a second network device, in a network, said system comprising: an intermediate device including: a first network interface configured to be coupled to said first network device, the first network interface including a first ethernet protocol stack including a first media access control (MAC) sub-layer, and a first physical coding sub-layer including a first auto-negotiation function; and a second network interface configured to be coupled to said second network device, the second network interface including a second ethernet protocol stack including a second media access (MAC) sub-layer and a second physical coding sub-layer including a second auto-negotiation function; said intermediate device configured for passing first auto-configuration codes from said first network device to said second network device, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface, until a first auto-configuration is completed in a configuration mode; said intermediate device configured for passing first data sets from said first network device to said second network device in a data mode after the configuration mode is completed; wherein said intermediate device is configured for passing second auto-configuration codes from said second network device to said first network device, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface, until a second auto-configuration is completed in the configuration mode; wherein said intermediate device is configured for passing second data sets from the second network device to the first network device in the data mode after the configuration mode is completed; wherein the first network interface includes a first switch configured for passing the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface in the configuration mode; and wherein the second network interface includes a second switch configured for passing the second auto-configuration codes from the second physical coding sub-layer to the first physical coding sub-layer, bypassing the second auto-negotiation function in the second network interface and the first auto-negotiation function in the first network interface in the configuration mode.
 2. The system of claim 1, wherein said intermediate device is a small-form factor pluggable (SFP) optical transceiver; and wherein the SFP optical transceiver includes a first port connected in the first device and a second port connected to the network.
 3. The system of claim 1, wherein said intermediate device comprises a field-programmable gate array (FPGA), central processing unit (CPU), or combination thereof.
 4. The system according to claim 1, wherein the intermediate device includes a management module configured for programming the first switch to pass the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, in the configuration mode; configured for determining when the configuration mode is completed; and configured for programming the first switch to pass the first data sets from the first physical coding sub-layer to the first MAC sub-layer, in the data mode.
 5. The system according to claim 1, wherein the intermediate device includes a management module configured for programming the first switch to pass the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, in the configuration mode; and configured for determining when the configuration mode is completed; and wherein the first physical coding sub-layer is configured to pass the first data sets directly to the first MAC sub-layer, in the data mode.
 6. A method for negotiating Ethernet link settings between a first network device and a second network device, in a network, said method comprising: coupling an intermediate device between first network device and a second network device, the intermediate device including: a first network interface configured to be coupled to said first network device, the first network interface including a first ethernet protocol stack including a first media access control (MAC) sub-layer, and a first physical coding sub-layer including a first auto-negotiation function; and a second network interface configured to be coupled to said second network device, the second network interface including a second ethernet protocol stack including a second media access (MAC) sub-layer and a second physical coding sub-layer including a second auto-negotiation function; passing first auto-configuration codes transmitted by said first device to said second network device, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface, until a first auto-configuration is completed in a configuration mode; passing first data sets from said first network device to said second network device in a data mode after the configuration mode is completed; passing second auto-configuration codes from said second network device to said first network device, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface, until a second auto-configuration is completed in the configuration mode; and passing second data sets from the second network device to the first network device in the data mode after the configuration mode is completed; wherein the first network interface includes a first switch configured for passing the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface in the configuration mode; and wherein the second network interface includes a second switch configured for passing the second auto-configuration codes from the second physical coding sub-layer to the first physical coding sub-layer, bypassing the second auto-negotiation function in the second network interface and the first auto-negotiation function in the first network interface in the configuration mode.
 7. The method of claim 6, wherein said intermediate device is a small-form factor pluggable (SFP) optical transceiver; and wherein the SFP optical transceiver includes a first port connected in the first device and a second port connected to the network.
 8. The method of claim 6, wherein said intermediate device comprises a field-programmable gate array (FPGA), central processing unit (CPU), or combination thereof.
 9. The method according to claim 6, wherein the intermediate device includes a management module configured for programming the first switch to pass the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, in the configuration mode; configured for determining when the configuration mode is completed; and configured for programming the first switch to pass the first data sets from the first physical coding sub-layer to the first MAC sub-layer, in the data mode.
 10. The method according to claim 6, wherein the intermediate device includes a management module configured for programming the first switch to pass the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, in the configuration mode; and configured for determining when the configuration mode is completed; and wherein the first physical coding sub-layer is configured to pass the first data sets directly to the first MAC sub-layer, in the data mode.
 11. A system for negotiating Ethernet link settings between a first network device and a second network device, in a network, said system comprising: an intermediate device including: a first network interface configured to be coupled to said first network device, the first network interface including a first ethernet protocol stack including a first media access control (MAC) sub-layer, and a first physical coding sub-layer including a first auto-negotiation function; and a second network interface configured to be coupled to said second network device, the second network interface including a second ethernet protocol stack including a second media access (MAC) sub-layer and a second physical coding sub-layer including a second auto-negotiation function; said intermediate device configured for passing first auto-configuration codes from said first network device to said second network device, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface, until a first auto-configuration is completed in a configuration mode; said intermediate device configured for passing first data sets from said first network device to said second network device in a data mode after the configuration mode is completed; wherein said intermediate device is configured for passing second auto-configuration codes from said second network device to said first network device, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface, until a second auto-configuration is completed in the configuration mode; said intermediate device configured for passing second data sets from the second network device to the first network device in the data mode after the configuration mode is completed; wherein the intermediate device includes a switch configured for passing the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface in the configuration mode; and configured for passing the second auto-configuration codes from the second physical coding sub-layer to the first physical coding sub-layer, bypassing the second auto-negotiation function in the second network interface and the first auto-negotiation function in the first network interface in the configuration mode.
 12. The system according to claim 11, wherein the intermediate device includes a management module configured for programming the switch to pass the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, in the configuration mode; configured for determining when the configuration mode is completed; and configured for programming the switch to pass the first data sets from the first physical coding sub-layer to the first MAC sub-layer, in the data mode.
 13. The system according to claim 11, wherein the intermediate device includes a management module configured for programming the switch to pass the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, in the configuration mode; and configured for determining when the configuration mode is completed; and wherein the first physical coding sub-layer is configured to pass the first data sets directly to the first MAC sub-layer, in the data mode.
 14. A method for negotiating Ethernet link settings between a first network device and a second network device, in a network, said method comprising: coupling an intermediate device between first network device and a second network device, the intermediate device including: a first network interface configured to be coupled to said first network device, the first network interface including a first ethernet protocol stack including a first media access control (MAC) sub-layer, and a first physical coding sub-layer including a first auto-negotiation function; and a second network interface configured to be coupled to said second network device, the second network interface including a second ethernet protocol stack including a second media access (MAC) sub-layer and a second physical coding sub-layer including a second auto-negotiation function; passing first auto-configuration codes transmitted by said first device to said second network device, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface, until a first auto-configuration is completed in a configuration mode; passing first data sets from said first network device to said second network device in a data mode after the configuration mode is completed; wherein the intermediate device includes a switch configured for passing the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, bypassing the first auto-negotiation function in the first network interface and the second auto-negotiation function in the second network interface in the configuration mode; and configured for passing the second auto-configuration codes from the second physical coding sub-layer to the first physical coding sub-layer, bypassing the second auto-negotiation function in the second network interface and the first auto-negotiation function in the first network interface in the configuration mode.
 15. The method according to claim 14, wherein the intermediate device includes a management module configured for programming the switch to pass the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, in the configuration mode; configured for determining when the configuration mode is completed; and configured for programming the switch to pass the first data sets from the first physical coding sub-layer to the first MAC sub-layer, in the data mode.
 16. The method according to claim 14, wherein the intermediate device includes a management module configured for programming the switch to pass the first auto-configuration codes from the first physical coding sub-layer to the second physical coding sub-layer, in the configuration mode; and configured for determining when the configuration mode is completed; and wherein the first physical coding sub-layer is configured to pass the first data sets directly to the first MAC sub-layer, in the data mode. 